# -*- coding: utf-8 -*-
"""
Created on Tue Sep  5 19:51:00 2017

@author: Administrator
"""

import numpy as np
import matplotlib.pyplot as plt

y=[20,10,30,25,15,60]
index=np.arange(6)
plt.bar(left=index, height=y, color='#0000FF', width=0.5)
plt.show()

y=[3.81,2.47,2.38,2.08,3.71,3.24,8.54,2.51,2.38,3.33,2.59,2.80,2.26,1.65,1.53,3.62,3.30,1.92,1.61,2.76,1.89,5.81,9.19,3.31,3.08,4.29,2.55,2.50,4.36,2.12,2.65,1.42,1.57,1.54]
index=np.arange(len(y))
plt.bar(left=index, height=y, color='#0000FF', width=0.8)
plt.show()